createGrid=function(grid,paginador,callback,path,titulo,ms,cols,model){
    ms=ms?true:false;
    var opts={
        url:path,
        datatype: "json",
        colNames:cols,
        colModel:model,
        autowidth:true,
        height:"150px",
        rowNum:10,
        pager: paginador,
        sortname: 'ID',
        viewrecords: true,
        sortorder: "desc",
        caption:titulo,
        mtype: "POST",
        rowList:[10,20,30],
        toolbar : [true,"top"],
        gridview : true,
        multiselect: ms
    };
    if(callback){
        opts.onSelectRow=callback;
    }

    return jQuery(grid).jqGrid(opts);
}

